package com.ls.hnks.util;

import lombok.Getter;

/**
 * 统一返回结果状态信息类
 *
 */
@Getter
public enum ResultCodeEnum {

    SUCCESS(200,"成功"),
    FAIL(400, "失败"),
    INVALID_TOKEN(401,"token无效"),
    FORBIDDEN(403,"没有访问权限"),
    ERROR(500,"服务器发生错误，请稍后再试"),
    USER_NOT_FOUND(100404,"用户不存在"),
    CUSTOMER_NOT_FOUND(200404,"顾客不存在"),
    SCHEDULE_NOT_FOUND(300404,"日程不存在"),
    TODO_NOT_FOUND(400404,"待办不存在"),
    TRAIN_NOT_FOUND(500404,"培训不存在"),
    AUTH_FAIL(100011,"账号或密码错误"),
    ARGUMENT_VALID_ERROR(100022, "参数错误"),
    ;

    private Integer code;

    private String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}